<#import "/manage/tpl/pageBase.ftl" as page>
<@page.pageBase currentMenu="扶贫人员管理">
<style>
	.td_right{text-align: right;}
</style>
<script type="text/javascript">
	$(function() {
		 $("#username").focus();
	});
</script>
</head>

<body>
<#if e.id??>
    <#assign formAction="111">
<#assign insertAction=false />
<#else >
<#assign formAction="insert">
    <#assign insertAction=true />
</#if>

<#--<%-- formAction=<s:property value="#formAction"/><br> --%>-->
<#--<%-- formAction2=<s:property value="#request.formAction"/><br> --%>-->
<form action="${basepath}/manage/user" id="form" method="post">
	<#--<s:form action="user!" namespace="/" theme="simple" id="form">-->
		<table class="table table-bordered">
			<tr>
				<td colspan="2" style="background-color: #dff0d8;text-align: center;">
					<strong>帐号编辑</strong>
				</td>
			</tr>

			<tr>
				<th class="td_right" style="padding-top: 15px">帐号</th>
				<td style="text-align: left;">
                    <#if insertAction>
                        <input type="text" disabled="true"  name="username" id="username"  data-rule="帐号:required;username;length[4~20];remote[unique]">
                    <#else >
                        <input type="text" name="username" id="username" disabled="true" value="${e.username!""}">

                    </#if>
				</td>
			</tr>
			<tr>
				<th class="td_right" style="padding-top: 15px">昵称</th>
				<td style="text-align: left;">
				<input type="text" disabled="true" name="nickname" value="${e.nickname!""}" id="nickname"  data-rule="昵称:required;nickname;length[2~20];remote[unique, id]"/>
					</td>
			</tr>
            <tr>
                <th class="td_right" style="padding-top: 15px">邮箱</th>
                <td style="text-align: left;">
                    <input type="text" disabled="true" name="email" value="${e.email!""}" id="email"  data-rule="邮箱:required;email;length[2~20];remote[unique, id]"/>
                </td>
            </tr>

            <tr>
                <th class="td_right" style="padding-top: 15px">手机号</th>
                <td style="text-align: left;">
                    <input type="text" disabled="true" name="phone" value="${e.phone!""}" id="phone"  data-rule="手机号:required;phone;length[2~20];remote[unique, id]"/>
                </td>
            </tr>

            <tr>
                <th class="td_right" >状态</th>
                <td>&nbsp;
                    <#if e.status=="y">
                        <img alt="显示" src="${basepath}/resource/images/action_check.gif">
                    <#else>
                        <img alt="不显示" src="${basepath}/resource/images/action_delete.gif">
                    </#if>
                </td>
            </tr>
            <tr>
                <th class="td_right"></th>
                <td style="text-align: left;">
                    <input type="button"  class="btn btn-success" onclick="javascript:history.back(-1);" value="返回"/>
                </td>
            </tr>
		</table>
</form>
</@page.pageBase>